from django.shortcuts import render

from rest_framework.generics import CreateAPIView
from rest_framework.permissions import IsAuthenticated
from .models import Order, OrderDetail
from .serializers import OrderModelSerializer

# Create your views here.

class OrderCreateAPIView(CreateAPIView):
    """  """
    queryset = Order.objects.filter(is_show=True, is_deleted=False)
    serializer_class = OrderModelSerializer
    permission_classes = [IsAuthenticated]

